package cn.Service.Impl;

import cn.Mapper.HeaderMapper;
import cn.Service.HeaderService;
import cn.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HeaderServiceImpl implements HeaderService {
    @Autowired
    private HeaderMapper headerMapper;
    public List<Product> findAllProductByCid(Integer cid) {
        return headerMapper.findAllProductByCid(cid);
    }

    public List<Product> FindAllProductByPname(String pname) {
        return headerMapper.FindAllProductByPname(pname);
    }

}
